/*
 * Copyright (C) 2012 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

 @import "base/environment";

 //since each item is treated as a row header don't want to color the border darker
.roles_table.ic-Table th[role="rowheader"] {
  border-bottom-color: $ic-border-light;
}

table.roles_table.ic-Table td.permissionButtonView {
  position: relative;

    .default_permission {
      opacity: 0.5;
    }

    .icon-x {
      color: $ic-color-danger;
    }

    .icon-check {
      color: $ic-color-success;
    }

    .btn-group {
      margin: 0 auto;
      width: 40px;
      position: relative;

      .btn.dropdown-toggle{
        position: relative;
        min-width: 35px;

        &:disabled, &[disabled] {
          background: none;
          border: none;

          & .icon-lock {
            display: none;
          }
        }
      }
    }

  .dropdown-menu {
    text-align: left;

    input[type=radio] {
      /* Display none breaks ie so we position it off the page */
      position: absolute;
      left: -9999px;
    }

    label{
      display: block;
      padding: 5px;
    }

    span.text{
      float: right;
      text-align: left !important;
      width: 110px;

      &:last{
        float: none;
        text-align: center;
        display: block;
      }
    }

    label:hover, label:focus, input:checked+label {
      text-decoration: none;
      color: white;
      background-color: $ic-brand-primary;
    }
  }
}

table#course_roles thead, table#account_roles thead {
  background: #fff;
}
